import service from "@/utils/request";


export function loginService(userAccount, password) {
    return service({
        url: "/sysUser/login",
        method: 'post',
        data: {userAccount, password}
    })
}

export function getUserInfoService() {
    return service({
      url: "/sysUser/info",
      method: "get",
    });
}

export function logoutService() {
  return service({
    url: "/sysUser/logout",
    method: "delete",
  });
}

export function getSuserListService(params) {
  return service({
    url: "/sysUser/list",
    method: "get",
    params,
  });
}

export function addUserService(params) {
  return service({
    url: "/sysUser/add",
    method: "post",
    data: params,
  });
}

